package com.service;

import java.util.List;

import com.base.BaseService;
import com.bean.RulerInfo;
import com.bean.RulerMethod;
import com.bean.RulerRole;

public interface RulerService  {
	
	public RulerInfo get(Integer id );//
	public RulerInfo getByAction(String action);
	public String add(RulerInfo rulerInfo);//曾
	
	public String delete(int id);//删
	
	public String update(int id, RulerInfo rulerInfo);//改

	public List<RulerInfo> query(RulerInfo rulerInfo);//查
	public List<RulerRole> queryMyRuler(int roleid);//查
	public List<RulerInfo> list(RulerInfo rulerInfo);//查
	
	//其他方法
	public List<RulerInfo> listTreeRuler();
	
	public List<RulerInfo> queryRulerList(List<Integer> list);//根据ruler id 的list 获取菜单列表
		
	public List<RulerRole> rulerRole(Long roleId);//获取角色id为roleId的权限列表
	
	public List<RulerMethod> queryMethds(RulerMethod rulerMethod, Boolean bmap);//获取 RulerMethod列表 
	
}
